feat(pipeline): replace Mastra workflow with @calca/pipeline package - #34
Open
espetro wants to merge 3 commits into
Open
feat(pipeline): replace Mastra workflow with @calca/pipeline package#34espetro wants to merge 3 commits into
espetro wants to merge 3 commits into
Conversation
Exact pin 4.0.23 shadowed the hoisted 4.0.26 that ai@6.0.175 requires, breaking @app/core's image generation module at runtime (missing isNonNullable export). Use caret range so bun dedupes to one copy.
Extracts the design pipeline (plan/layout/images/review/critique) out of apps/server's Mastra-based workflow into a standalone @calca/pipeline package with its own streaming implementation, dropping the @mastra/* dependency. Bumps AI SDK to v7 (@ai-sdk/anthropic ^4, @ai-sdk/google ^4, @ai-sdk/openai-compatible ^3, @ai-sdk/provider ^4, ai ^7) and switches cache-key hashing from Node's crypto.createHash to crypto.subtle for cross-runtime compatibility. Closes #28
Deploying calca with
|
| Latest commit: |
cc104d5
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://5906e4a5.calca-5u3.pages.dev |
| Branch Preview URL: | https://feat-pipeline-migration.calca-5u3.pages.dev |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
apps/server's Mastra-based workflow into a standalone@calca/pipelinepackage with its own streaming implementation@mastra/*dependency entirely@ai-sdk/anthropic^4,@ai-sdk/google^4,@ai-sdk/openai-compatible^3,@ai-sdk/provider^4,ai^7crypto.createHashtocrypto.subtlefor cross-runtime compatibilityCloses #28
Test plan
bunx turbo typecheck test --filter=@app/core --filter=@calca/pipeline --filter=@app/server— all green@app/core33 tests,@calca/pipeline2 tests,@app/server19 tests all passingapps/server+apps/webdev servers, configured LM Studio as an OpenAI-compatible provider through Settings UI, submitted a design prompt, confirmed the SSE stream ran through plan → layout stages and a design frame rendered on the canvas with 0 console errors